package com.rs.statistics.service;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.rs.statistics.dao.IReadroomDao;
import com.rs.statistics.model.Readroom;
@Service
public class ReadroomService implements IReadroomService {
@Resource
private IReadroomDao readroomDao;
	@Override
	public Map find(Readroom readroom) {
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("code" ,0);
		map.put("count", readroomDao.count());
		map.put("data", readroomDao.findAll());
		return map;
	}
}
